package ro.dandanciu.webgallery.services;

import java.util.List;
import java.util.Set;

import ro.dandanciu.webgallery.domainmodel.Roles;
import ro.dandanciu.webgallery.domainmodel.User;

public interface UserServices {

	void save(User user, String administrator);

	void save(String userId, User user, boolean ignorePassword, String updater);

	User getUserByUserIdAndPassword(String userId, String password);
	
	Set<Roles> getUserRoles(User user);
	
	List<User> getUsers(String query);

	User getUserByUserId(String userId);

	void delete(String userId, boolean deleteOnFS);

}
